package com.example.springbootlearn.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.example.springbootlearn.dao.UserDao;
import com.example.springbootlearn.data.pojo.User;

@Service
public class UserService {
	@Autowired
	UserDao userDao;

	public List<User> queryAll() {
		return userDao.getAllUsers();
	}

}
